/*
 * @Author: xws 1043495328@qq.com
 * @Date: 2023-07-22 14:45:48
 * @LastEditors: xws 1043495328@qq.com
 * @LastEditTime: 2023-07-22 15:24:56
 * @FilePath: \vue3-admin-template\src\api\user\type.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//登录接口携带参数ts类型
export interface loginFormData {
  username: string
  password: string
}
//定义全部接口返回数据都拥有ts类型
export interface ResponseDate {
  code: number
  message?: string
  ok: boolean
}
//定义接口返回数据类型
export interface loginResponseDate extends ResponseDate {
  data: string
}
//定义接口返回数据类型
export interface userInfoResponseDate extends ResponseDate {
  data: {
    routes: string[]
    buttons: string[]
    rolse: string[]
    name: string
    avatar: string
  }
}
